package com.shuatim.common.enums;

/**
 *
 * @author yhy
 * @date 2019年4月18日16:20:55
 */
public enum CustomHttpStatus implements BaseEnum {

    /**
     * 用户验证码错误
     */
    DEFAULT_CUSTOM_STATUS(600, "default custom error code"),

    /**
     * 用户未登录
     */
    USER_NOT_LOGIN(601, "user not login"),
    
    REQUEST_DUPLICATE(602, "request duplicate");

    private Integer code;
    private String name;

    CustomHttpStatus(Integer code, String name){
        this.code = code;
        this.name = name;

    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }
}
